package com.ruoyi.goods.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 商品对象 sys_prod
 *
 * @author tsh
 * @date 2025-08-01
 */
public class SysProd extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Integer prodId;

    /**
     * SPU
     */
    @Excel(name = "SPU")
    private String prodSpu;

    /**
     * 商品类型
     */
    @Excel(name = "商品类型")
    private Integer prodKind;

    /**
     * 商品分类
     */
    @Excel(name = "商品分类")
    private Integer prodType;

    /**
     * 商品状态
     */
    @Excel(name = "商品状态")
    private Integer prodStatus;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String prodName;

    /**
     * 商品品牌
     */
    @Excel(name = "商品品牌")
    private Integer brandId;

    /**
     * 商品单位
     */
    @Excel(name = "商品单位")
    private Integer unitId;

    /**
     * 商品标签
     */
    @Excel(name = "商品标签")
    private Integer tagId;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    private String appr;

    /**
     * 缩略图
     */
    @Excel(name = "缩略图")
    private String prodImage;



    private String brandName;


    private String typeName;

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setProdId(Integer prodId) {
        this.prodId = prodId;
    }

    public Integer getProdId() {
        return prodId;
    }

    public void setProdSpu(String prodSpu) {
        this.prodSpu = prodSpu;
    }

    public String getProdSpu() {
        return prodSpu;
    }

    public void setProdKind(Integer prodKind) {
        this.prodKind = prodKind;
    }

    public Integer getProdKind() {
        return prodKind;
    }

    public void setProdType(Integer prodType) {
        this.prodType = prodType;
    }

    public Integer getProdType() {
        return prodType;
    }

    public void setProdStatus(Integer prodStatus) {
        this.prodStatus = prodStatus;
    }

    public Integer getProdStatus() {
        return prodStatus;
    }

    public void setProdName(String prodName) {
        this.prodName = prodName;
    }

    public String getProdName() {
        return prodName;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public Integer getUnitId() {
        return unitId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    public Integer getTagId() {
        return tagId;
    }

    public void setAppr(String appr) {
        this.appr = appr;
    }

    public String getAppr() {
        return appr;
    }

    public void setProdImage(String prodImage) {
        this.prodImage = prodImage;
    }

    public String getProdImage() {
        return prodImage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("prodId", getProdId())
                .append("prodSpu", getProdSpu())
                .append("prodKind", getProdKind())
                .append("prodType", getProdType())
                .append("prodStatus", getProdStatus())
                .append("prodName", getProdName())
                .append("brandId", getBrandId())
                .append("unitId", getUnitId())
                .append("tagId", getTagId())
                .append("appr", getAppr())
                .append("prodImage", getProdImage())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("typeName", getTypeName())
                .append("brandName", getBrandName())
                .toString();
    }
}
